<?php
# Copyright Bonapart~Team16 2009
# Distributed under terms of GNU\GPL
# T16CMS
# look in config.php to configure
chdir("../..");
if (isset($_GET['module'])){
$default=$_GET['module'];
}else{
$default="info.php";}
$default="modules/".$default;

include "t16cms/php/user.php";
include "t16cms/php/config.php";
ob_start();
if (get_reg()==1) {
ob_end_clean();
if (get_right($site_user['access'],6)==1 or get_right($site_user['access'],5)==1 or get_right($site_user['access'],4)==1){


while ($cnt>1)
{
 $cnt=$cnt-1;
 
 $site_page_out=$site_page_out."<br />";

}

//$site_page_out='<div align="center">'.$site_page_out."</div>";/




include $default;

$site_title=$site_name.$site_del."Admin panel";

include "t16cms/cp/amenu.php";
include "t16cms/php/main.php";
include "t16cms/php/down.php";

}else
{
echo "lack of access";
}

}

















?>